Skip to content

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Jul 25, 2025

Motivation:

The command plugin requires proto files to be passed as separate inputs. While expanding these with a wildcard is straightforward, doing so usually requires the user to also set an import path.

Modifications:

  • Allow directories to be used as input to the command plugin. Doing so also uses the directory as an import path.
  • Improve the help text for the command plugin and provide example calls

Result:

Easier to use the command plugin. In many cases users will only need to specify the directory containing their protos and the output directory.

Motivation:

The command plugin requires proto files to be passed as separate inputs.
While expanding these with a wildcard is straightforward, doing so
usually requires the user to also set an import path.

Modifications:

- Allow directories to be used as input to the command plugin. Doing so
  also uses the directory as an import path.
- Improve the help text for the command plugin and provide example calls

Result:

Easier to use the command plugin. In many cases users will only need to
specify the directory containing their protos and the output directory.
@glbrntt glbrntt added the 🆕 semver/minor Adds new public API. label Jul 25, 2025
@glbrntt glbrntt requested a review from gjcairo July 25, 2025 15:00
@glbrntt glbrntt merged commit df9af05 into grpc:main Jul 25, 2025
32 checks passed
@glbrntt glbrntt deleted the dir-as-input branch July 25, 2025 15:29
@glbrntt glbrntt changed the title Allow commnad plugin to take a dir as input Allow command plugin to take a dir as input Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants